<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>账户</title>
    <script type="text/javascript" src="/static/assets/js/jquery.min.js"></script>
    <link rel="stylesheet" href="/static/assets/layui/css/layui.css">
    <script type="text/javascript" src="/static/assets/layui/layui.js"></script>
</head>

<body>
    <div>
      <ul class="layui-nav layui-bg-green">
        <li class="layui-nav-item"><a href="/trade/trade_index">首页</a></li>
        <li class="layui-nav-item"><a href="/trade/trade_list">交易列表<span class="layui-badge">9</span></a></li>
        <li class="layui-nav-item"><a href="/trade/trade_strategy_list">策略列表</a></li>
        <li class="layui-nav-item " style="float: right;">
          <a href="javascript:;">当前用户:{{user_info.username}}</a>
          <dl class="layui-nav-child">
            <dd><a href="/user/user_wallet_show">钱包</a></dd>
            <dd><a href="/user/gateio_user_show">GateIO</a></dd>
            <dd><a href="">修改密码</a></dd>
            <dd><a href="/user/logout">退出</a></dd>
          </dl>
        </li>
      </ul>
    </div>
    

    {%block content %}{% endblock %}
       

    
    <!-- /#wrapper -->
    

    <script type="text/javascript">
      //菜单栏高亮当前菜单
      var url_str = window.document.location.pathname;
      var url_path = url_str.split("?")[0]
      $("a[href='"+url_path+"']").parent().addClass("layui-this");

      layui.use('element', function(){
        var element = layui.element; //导航的hover效果、二级菜单等功能，需要依赖element模块
        
        //监听导航点击
        element.on('nav(demo)', function(elem){
          //console.log(elem)
          layer.msg(elem.text());
        });
      });

    </script>
</body>
</html>